package Facades;

import Entities.Cargo;
import Controllers.CargoFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.inject.Named;
import javax.inject.Inject;
import javax.enterprise.context.SessionScoped;

@Named(value = "cargoController")
@SessionScoped
public class CargoController extends AbstractController<Cargo> implements Serializable {

    @Inject
    private CargoFacade ejbFacade;

    public CargoController() {
        super(Cargo.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }
}
